﻿using System.IO;
using System.Text;
using System.Windows.Browser;

namespace jLight
{
    public class jQueryEffectConst
    {
        public static string Toggle { get { return "toggle"; } }
        public static string Show { get { return "show"; } }
        public static string Hide { get { return "hide"; } }
    }

    public class jQueryEffectMap : jQueryObjectBase
    {
        public string Opacity
        {
            set { ScriptObject.SetProperty("opacity", value); }
            get { return (string)ScriptObject.GetProperty("opacity"); }
        }
        public string Left
        {
            set { ScriptObject.SetProperty("left", value); }
            get { return (string)ScriptObject.GetProperty("left"); }
        }
        public string Top
        {
            set { ScriptObject.SetProperty("top", value); }
            get { return (string)ScriptObject.GetProperty("top"); }
        }
        public string Width
        {
            set { ScriptObject.SetProperty("width", value); }
            get { return (string)ScriptObject.GetProperty("width"); }
        }
        public string Height
        {
            set { ScriptObject.SetProperty("height", value); }
            get { return (string)ScriptObject.GetProperty("height"); }
        }        

        public static implicit operator ScriptObject(jQueryEffectMap effectMap)
        {
            return effectMap.ScriptObject;
        }
    }
}